//created by: Justina Lee

Ext.define("MajorProjectSenchaTouch.model.OpLocation", {
    extend: "Ext.data.Model",
    xtype: "opLocationModel",
    config:{
        fields:[
        {
            name: 'locationName',
            type: 'string'
        }
        ],
        hasMany: {
            model: 'MajorProjectSenchaTouch.model.OpeningHour', 
            name: 'openingHours',
            associationKey: 'openingHours'
        }
    }    
});